﻿namespace UserManagement
{
    using Common.Base;
    using UserManagement.Controllers;

    public class UserManagementController : SubsystemController
    {
        public override void Initialize()
        {
            this.currentController = new LoginController(this);
            this.currentController.ViewChanging += this.ChangeView;
            this.currentController.Initialize();
        }

        public void ShowRegistration()
        {
            this.currentController = new RegistrationController(this);
            this.currentController.ViewChanging += this.ChangeView;
            this.currentController.Initialize();
        }

        public void ShowLogin()
        {
            this.currentController = new LoginController(this);
            this.currentController.ViewChanging += this.ChangeView;
            this.currentController.Initialize();
        }
    }
}
